package com.jinxin.phonecloudmusic.myapplication.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.jinxin.phonecloudmusic.myapplication.R;
import com.jinxin.phonecloudmusic.myapplication.entity.MusicBean.Song;

import java.util.List;

/**
 * Created by ZJ on 2017/10/16 0016.
 */

public class MusicSearchSongAdapter extends QuickAdapter<Song>{
    public MusicSearchSongAdapter(Context context, int res, List<Song> data) {
        super(context, res, data);
    }

    @Override
    public View getItemView(int position, View convertView, ViewHolder holder) {
        Song song=data.get(position);

        TextView tvSearchSongName=holder.getView(R.id.tv_search_song_name);
        TextView tvSearchSongSonger=holder.getView(R.id.tv_search_song_songer);

        tvSearchSongName.setText(song.getSongname());
        tvSearchSongSonger.setText(song.getArtistname());
        return convertView;
    }
}
